<?php
//error_reporting(E_ALL);
if ( !isset( $_SERVER["HTTP_X_REQUESTED_WITH"] ) ) $_SERVER["HTTP_X_REQUESTED_WITH"] = '';
header('Content-type: text/html; charset=utf-8');
include("core/autoload.php");
if ( $_SERVER["HTTP_X_REQUESTED_WITH"] != 'XMLHttpRequest' ) $template->begin();
$mdl = $core->config('mdl');
$$mdl = new $mdl ( $core->qstring_to_array( $_SERVER["QUERY_STRING"] ) );
if ( $_SERVER["HTTP_X_REQUESTED_WITH"] != 'XMLHttpRequest' ) $template->cout();
?>